package com.web.kdl.pojo.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.web.kdl.service.excel.AutoIncrementIdConverter;
import lombok.Data;

/**
 * @Author： shulibin
 * @Date： 2025/8/25 14:23
 * @Describe： 历史事件实体类（映射 Excel 表头）
 * @ExcelProperty 注解说明：
 *  *   - value：指定 Excel 表头名称（必须与表格列名完全一致，区分大小写）
 *  *   - order：可选，指定列的顺序（若表头顺序与类字段顺序不一致时使用）
 */

@Data
public class HistoryEventExcel {
    @ExcelProperty(value = "序号",index = 0,converter = AutoIncrementIdConverter.class)
    private String id;
    @ExcelProperty(value = "飞轮id",index = 1)
    private String flywheelId;
    @ExcelProperty(value = "总站点",index = 2)
    private String sumSite;
    @ExcelProperty(value = "分站点",index = 3)
    private String subSite;
    @ExcelProperty(value = "设备名称",index = 4)
    private String deviceName;
    @ExcelProperty(value = "设备指标",index = 5)
    private String statusName;
    @ExcelProperty(value = "状态",index = 6)
    private String statusValue;
    @ExcelProperty(value = "补充说明",index = 7)
    private String statusByteName;
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "时间", index = 8)
    private String time;
}
